Skip to content

[APIE-1040] Default flink statement --wait-timeout to 1m (defer 6h to next major)#3393

Merged
Daniel Ayaz (danielayaz) merged 1 commit into
re-apply-wait-prfrom
dayaz/apie-1040-wait-timeout-1m
Jun 30, 2026
Merged

[APIE-1040] Default flink statement --wait-timeout to 1m (defer 6h to next major)#3393
Daniel Ayaz (danielayaz) merged 1 commit into
re-apply-wait-prfrom
dayaz/apie-1040-wait-timeout-1m

Conversation

@danielayaz

Copy link
Copy Markdown
Member

Summary

Addresses review feedback on the --wait reapply (#3389): keep the flink statement create --wait-timeout default at 1 minute instead of jumping to 6h.

The pre-framework --wait used a hardcoded retry.Retry(time.Second, time.Minute, …) — a 1-minute timeout. Customers may have scripted around that timer, so silently changing the default to 6h on the --wait refactor is a behavior change we'd rather not ship mid-cycle. This keeps the observable default identical to today and defers the 6h bump to the next major version (users who want longer can already pass --wait-timeout).

One-line change to the constant + the four flink statement create help goldens ((default 6h0m0s)(default 1m0s)).

Test plan

  • gofmt clean; go test ./internal/flink/ passes
  • Built the binary and confirmed confluent flink statement create --help renders --wait-timeout … (default 1m0s) (matches the regenerated golden)
  • Updated all 4 affected goldens (create-help, create-help-onprem, create-missing-compute-pool-failure, create-missing-sql-failure); no other 6h0m0s references remain

Stacked on #3389 (re-apply-wait-pr) — the flinkStatementCreateWaitTimeout constant only exists there, so this targets that branch; merging it folds the 1m default into the reapply before it lands on main.

🤖 Generated with Claude Code

Per review on the --wait reapply: keep the flink statement create
--wait-timeout default at 1 minute, matching the pre-framework behavior
(a hardcoded retry.Retry(time.Second, time.Minute, ...) poll). Jumping
straight to 6h could surprise customers who script around the existing
1-minute timer, so defer the 6h bump to the next major version. Users can
already lengthen the wait now via --wait-timeout.

Updated the four flink statement create help goldens (default 6h0m0s -> 1m0s);
verified the rendered --help matches.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@danielayaz Daniel Ayaz (danielayaz) requested a review from a team as a code owner June 29, 2026 21:14
@confluent-cla-assistant

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@sonarqube-confluent

Copy link
Copy Markdown

@danielayaz Daniel Ayaz (danielayaz) merged commit 35dac64 into re-apply-wait-pr Jun 30, 2026
3 checks passed
@danielayaz Daniel Ayaz (danielayaz) deleted the dayaz/apie-1040-wait-timeout-1m branch June 30, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants